﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="StarProfileList.aspx.cs" Inherits="JohnnySins.Admin.StarProfileList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
      
    </script>
    <style type="text/css">
            .search_panel{
	            background:#eaf6ff;
	            border-bottom:1px solid #dfe8ef;
	            padding:10px 30px;
            }
            .search_content{
	            padding:10px 30px;
            }
            .search_panel_label{
	            width:100px;
            }
            .search_btn{
	            margin-top:25px;
            }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page_title">
        <h1>Porn Star</h1>
    </div>
                    
    <!--start tabel scenes conetnt-->
    <div class="admin_table_container">
        <asp:UpdatePanel ID="upList" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
            <div class="row">
                <div class="col-lg-12">
                    <div class="display_inputbox_panel">
                        <h4>Search</h4>
                        <div class="row">
                            <div class="col-lg-5">
                                <div class="display_inputbox_content">
                                                <div class="form-group">
                                                    <label class="col-sm-4 col-md-3 control-label custom_label">Name:</label>
                                                    <div class="col-sm-8 col-md-9">
                                                        <asp:TextBox runat="server" ID="txtNameFilter" CssClass="form-control" placeholder="Name"/>
                                                    </div>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <label class="col-sm-4 col-md-3 control-label custom_label">Gender:</label>
                                                    <div class="col-sm-8 col-md-9">
                                                        <asp:DropDownList CssClass="form-control" ID="ddlGenderFilter" runat="server">
                                                            <asp:ListItem Text="ALL" Value="ALL"/>
                                                            <asp:ListItem Text="Male" Value="Male"/>
                                                            <asp:ListItem Text="Female" Value="Female"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                
                                                <div class="form-group">
                                                    <label for="inputname" class="col-sm-4 col-md-3 control-label custom_label">Rank:</label>
                                                    <div class="col-sm-8 col-md-9">
                                                        <select class="form-control" >
                                                        	<option value="0">All</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                                                    
                                </div>                                        
                            </div>
                        </div>
                                
                        <div class="button_group">
                            <asp:Button CssClass="btn btn-info" ID="btnSearch" Text="Search" runat="server" onclick="btnSearch_Click" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="admin_table_container">
            <h3>Search Result</h3>
            <div class="table-responsive">
               <asp:GridView ID="grid" AutoGenerateColumns="false" runat="server" CssClass="table table-bordered table-hover"
                  AllowPaging="False" PageSize="20" OnRowDataBound="grid_RowDataBound" OnRowCommand="grid_Command">
                  <PagerSettings Mode="Numeric" PageButtonCount="4" NextPageText=">" PreviousPageText="<"
                     FirstPageText="<<" LastPageText=">>" />
                  <Columns>
                     <asp:TemplateField HeaderText="Name">
                        <ItemTemplate>
                            <asp:HiddenField ID="hidId" Value='<%#Eval("StarProfileId")%>' runat="server" />
                           <asp:Label ID="lblFullName" Text='<%# Eval("FullName") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Gender">
                        <ItemTemplate>
                           <asp:Label ID="lblGender" Text='<%# Eval("Gender") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Rank">
                        <ItemTemplate>
                           <asp:Label ID="lblRank" Text='<%# Eval("StarRank") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Scenes">
                        <ItemTemplate>
                           <asp:Label ID="lblScenes" Text='<%# Eval("CountScene") %>' runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Action">
                        <ItemTemplate>
                           <a href='StarProfile.aspx?pid=<%#Eval("StarProfileId")%>'>
                              <img src="<%=ResolveClientUrl("~") %>images/admin/action_icon/edit_icon.png" alt="" title="Edit"
                                 border="0" />
                           </a>
                           <asp:ImageButton runat="server" ImageUrl="~/images/admin/action_icon/delete_icon.gif" ToolTip="Delete"
                              Style="vertical-align: middle;" ID="lbtnDelete" OnCommand="grid_Command" CommandName="delete"
                              CommandArgument='<%# Eval("StarProfileId")%>' OnClientClick="return confirm('Please confirm if you want to delete videos')" />
                           <asp:ImageButton ID="btnDeactivate" OnCommand="grid_Command" ToolTip="Deactivate"
                              Style="vertical-align: middle;" CommandName="deactivate" CommandArgument='<%# Eval("StarProfileId")%>'
                              runat="server" OnClientClick="return confirm('Please confirm if you want to deactivate videos')"
                              ImageUrl="~/images/admin/action_icon/deactive.png" />
                           <asp:ImageButton ID="btnActivate" OnCommand="grid_Command" ToolTip="Activate" Style="vertical-align: middle;"
                              CommandName="activate" CommandArgument='<%# Eval("StarProfileId")%>' runat="server"
                              OnClientClick="return confirm('Please confirm if you want to activate videos')"
                              ImageUrl="~/images/admin/action_icon/logout.png" />
                        </ItemTemplate>
                     </asp:TemplateField>
                  </Columns>
               </asp:GridView>
            </div>
            </div>
         </ContentTemplate>
      </asp:UpdatePanel>
                              
      <div class="button_group">
        <div class="row">
            <div class="col-sm-6 col-lg-6">
                                    <asp:Button CssClass="btn btn-default" ID="btnDeleteSelected" OnClientClick="return confirm('Please confirm if you want to delete selected videos')"
                                        Text="Delete Selected" runat="server" OnClick="btnDeleteSelected_Click" Visible = "false"/>
                                    <asp:Button CssClass="btn btn-default" ID="btnActivateSelected" OnClientClick="return confirm('Please confirm if you want to activate selected videos')"
                                        Text="Activate Selected" runat="server" OnClick="btnActivateSelected_Click" Visible = "false"/>
                                    <asp:Button CssClass="btn btn-default" ID="btnDeactivateSelected" OnClientClick="return confirm('Please confirm if you want to deactivate selected videos')"
                                        Text="Deactivate Selected" runat="server" OnClick="btnDeactivateSelected_Click" Visible = "false"/>
                                    
            </div>
            <div class="col-sm-6 col-lg-6">
                                    <asp:Button CssClass="btn btn-default" ID="btnReverseSelected" Text="Reverse Selected"
                                        runat="server" OnClick="btnReverseSelected_Click" Visible = "false" />
                                    <asp:Button CssClass="btn btn-default" ID="btnStarProfileAdd" Text="Add Profile" 
                                            runat="server"  OnClick="btnAddProfile_Click"/>
                                    
            </div>
        </div>                            	
      </div>


    </div>
    <!--end tabel scenes conetnt-->
</asp:Content>
